package homework0309;

public class Student1 {
    private  String name;

    public Student1() {
    }

    public Student1(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        if (!("刘德华".equals(name))){
            throw new RuntimeException();
        }
        this.name = name;
    }
}
